using Lazy.Captcha.Core.Generator;
using Ln.Fram.Ddd.Application;
using Ln.Rbac.Application.Contracts;
using Ln.Rbac.Domain;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.BackgroundWorkers.Quartz;

namespace Ln.Rbac.Application;

[DependsOn(
	typeof(LnRbacApplicationContractsModule),
	typeof(LnRbacDomainModule),
	typeof(LnFramDddApplicationModule),
	typeof(AbpBackgroundWorkersQuartzModule))]
public class LnRbacApplicationModule : AbpModule
{
	public override void ConfigureServices(ServiceConfigurationContext context)
	{
		var service = context.Services;

		service.AddCaptcha(options =>
		{
			options.CaptchaType = CaptchaType.ARITHMETIC;

		});
	}

	public async override Task OnApplicationInitializationAsync(ApplicationInitializationContext context)
	{
	}
}
